package com.huiyun.project.im.api.client.vo.req.tenant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @FileName: ImTenantMessageReq
 * @Description: im sp通过租户发送消息
 * @Version 4.0.0
 */
@Data
@ApiModel
public class ImTenantMessageReq implements Serializable {
    @ApiModelProperty(value = "租户id")
    private  String  tenantId;

    @ApiModelProperty(value = "发送类型 0：使用租户id通知 1：系统通知，2：物流通知，3：优惠通知 ")
    private  Integer sendType;

    @ApiModelProperty(value = "发送客服id")
    private String   csUserId;


    @ApiModelProperty(value = "登录名发送的用户对象,空时发送到该应用下所有个人用户")
    private List<String> usernames;

    @ApiModelProperty(value = "发送的内容",required = true)
    @NotBlank
    private String content;
}
